package com.dynamic.mybatis.context;


/**
 * @Description
 * @Author xs
 * @Date 2020/9/29 9:32
 */
public class WebContextHolder {
    private static  ThreadLocal<Object> webContext = new ThreadLocal<>();

    public static <T> T get(){
        return (T)webContext.get();
    }

    public static <T> void set(T webContext){
        WebContextHolder.webContext.set(webContext);
    }

    public static void remove(){
        webContext.remove();
    }
}